#include "CobCannon.h"
#include "../../data/GameInfo.h"

CobCannon::CobCannon()
{
    SDL_Texture *texture = GameInfo::Instance().texturePool[TexId::TEX_COB_CANNON];
    int hNum = 1, wNum = 1;
    std::vector<int> idxList = {0};
    skillMix = GameInfo::Instance().mixPool[MixId::MIX_RASENGAN];
    animation.SetFrameData(texture, hNum, wNum, {idxList});
    animation.isLoop = false;
    animation.onFinished = [this] { isValid = false; };
    animation.SetInterval(4);
    animation.texture = texture;
    shape.type = ShapeType::RECT;
    damage = 1;
    speed = 8;
    shape.w = 118;
    shape.h = 118;
    consume = 10;
    isOnce = true;
    needRotate = true;
}